/* Reset styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333333;  /* 更深的文本颜色 */
    background-color: #e6e9ed;  /* 更深的背景色 */
}

form, ul, ol, li, p, h1, h2, h3, h4, h5, h6, dl, dt, dd, table, fieldset, hr, div, span, button {
    border: 0 none;
    margin: 0;
    padding: 0;
}

/* Page header */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background: #60a4a5;
    padding: 20px;
    height: 28px;  /* 固定高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    line-height: 1.4;
}

/* Layout */
#wrap {
    position: fixed;
    top: 68px;  /* 页面头部高度 */
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    height: 100%;
    background: #C5D5EC;  /* 更深的侧边栏背景色 */
    padding: 10px 0;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);  /* 增强阴影 */
    flex-shrink: 0;
    border-right: 1px solid #ddd;  /* 添加边框 */
}

.sidebar li {
    margin: 5px 10px;
    padding: 12px 35px 12px 15px;  /* 增加右侧内边距，为箭头留出空间 */
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    white-space: nowrap;       /* 文字不换行 */
    text-overflow: ellipsis;   /* 超出显示省略号 */
}

/* 悬停效果 */
.sidebar li:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

/* 点击效果 */
.sidebar li:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 选中状态 */
.sidebar li.active {
    background: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(24,144,255,0.1);
}

/* 箭头图标 */
.sidebar li::after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.3;
    transition: all 0.3s ease;
    pointer-events: none;  /* 防止箭头影响点击 */
}

.sidebar li:hover::after {
    opacity: 0.6;
    transform: translate(2px, -50%);
}

.sidebar li.active::after {
    opacity: 1;
    color: #1890ff;
}

/* Content area */
#content {
    flex: 1;
    padding: 20px;
    background: #ffffff;  /* 保持内容区域为白色 */
    overflow-y: auto;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);  /* 增强阴影 */
}

/* Form elements */
label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #3b4151;
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    max-width: 340px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;  /* 更深的输入框边框 */
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    background-color: #ffffff;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #49cc90;
    outline: none;
    box-shadow: 0 0 0 2px rgba(73, 204, 144, 0.2);
}

/* Buttons */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #d9d9d9;  /* 更深的按钮边框 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);  /* 添加阴影 */
}

.blue_btn {
    background-color: #49cc90;
    color: white;
    border: 1px solid #49cc90;
}

.blue_btn:hover {
    background-color: #40b881;
    border-color: #40b881;
}

.white_btn {
    background-color: #fff;
    color: #3b4151;
    border: 1px solid #d9d9d9;
}

.white_btn:hover {
    background-color: #f5f5f5;
    border-color: #d9d9d9;
}

/* API Documentation styles */
.api-docs {
    background: #C5D5EC;  /* 更深的背景色，与侧边栏一致 */
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #e8e8e8;
}

.api-test-section {
    background-color: #C5D5EC;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #e8e8e8;
}


/* API info section */
.api-info {
    background: #ffffff;  /* 保持内部区块为白色背景 */
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

/* API sections (description, params, response, examples) */
.api-description,
.api-params,
.api-response,
.api-examples {
    background: #ffffff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
}

.api-method {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    margin-right: 10px;
}

.api-method.get {
    background: #e7f0f7;
    color: #0085ff;
}

.api-method.post {
    background: #e8f6f0;
    color: #49cc90;
}

.api-path {
    font-family: monospace;
    font-size: 14px;
    color: #3b4151;
}

.api-description {
    margin: 15px 0;
    color: #666;
    line-height: 1.5;
}

/* Tables */
.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: #fff;
}

.parameter-table th,
.parameter-table td {
    padding: 10px;
    border: 1px solid #eee;
    text-align: left;
}

.parameter-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #3b4151;
}

.parameter-table td {
    font-size: 14px;
}

.parameter-table th,
.response-table th {
    background: #f0f2f5;  /* 更深的表头背景色 */
    font-weight: 600;
    color: #333333;
    border-bottom: 2px solid #d9d9d9;  /* 加深表头底部边框 */
}

.parameter-table td,
.response-table td {
    border: 1px solid #e8e8e8;  /* 加深表格边框 */
}

/* Request/Response display */
.request-response-info {
    margin-top: 20px;
}

.request-section,
.response-section {
    margin-bottom: 20px;
}

.request-section h4,
.response-section h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}
.request-data {
    max-height: 500px;
    overflow-y: scroll;
}
.request-data,
.response-data {
    padding: 15px;
    background: #C5D5EC;  /* 更深的代码块背景色 */
    border-radius: 4px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    min-height: 50px;
    color: #333333;  /* 更深的文本颜色 */
    overflow: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #e8e8e8;  /* 添加边框 */
}

/* JSON 语法高亮颜色 - One Dark Pro 主题风格 */
.request-data .json-key,
.response-data .json-key {
    color: #e06c75;  /* 红色 - 键名 */
}

.request-data .json-string,
.response-data .json-string {
    color: #98c379;  /* 绿色 - 字符串 */
}

.request-data .json-number,
.response-data .json-number {
    color: #d19a66;  /* 橙色 - 数字 */
}

.request-data .json-boolean,
.response-data .json-boolean {
    color: #56b6c2;  /* 青色 - 布尔值 */
}

.request-data .json-null,
.response-data .json-null {
    color: #c678dd;  /* 紫色 - null */
}

/* Form sections */
fieldset {
    border: 1px solid #eee;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

fieldset legend {
    padding: 0 10px;
    font-weight: 600;
    color: #3b4151;
}

/* Info display */
.info_show {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 16px;
    margin-top: 16px;
    height: 500px;
    overflow-y: auto;
    background-color: #fafafa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        transition: left 0.3s ease;
        z-index: 100;
    }

    .sidebar.active {
        left: 0;
    }

    #content {
        margin-left: 0;
    }

    /* 菜单按钮样式 */
    .menu-toggle {
        display: block !important;
        position: fixed;
        left: 15px;
        top: 15px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        cursor: pointer;
        border: none;
        padding: 8px;
    }

    /* 遮罩层样式 */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    /* .sidebar-overlay.active {
        display: block;
    } */

    /* 调整页面头部在移动端的样式 */
    .page-header {
        padding-left: 70px;
    }
}

/* 大屏幕样式 */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }

    .sidebar {
        position: relative;
        left: 0;
    }

    #wrap {
        display: flex;
        min-height: calc(100vh - 68px);
    }
}

/* 确保菜单按钮在需要时可见 */
.menu-toggle {
    display: none;
}

/* 菜单按钮悬停效果 */
.menu-toggle:hover {
    background: #f5f5f5;
}

/* 菜单按钮激活状态 */
.menu-toggle:active {
    background: #e6e6e6;
}

/* Tooltip */
.field-tip {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Required field marker */
.required-field label::after {
    content: " *";
    color: #f5222d;
}

/* Error message */
.field-error {
    color: #f5222d;
    font-size: 12px;
    margin-top: 4px;
}

/* Add item button */
.add-item {
    margin-top: 10px;
}

/* Title styles */
h3, h4, h5 {
    color: #3b4151;
    margin: 15px 0;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 14px;
}

/* 认证信息输入框样式 */
.auth-json-input {
    width: 100%;
    font-family: monospace;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    transition: border-color 0.3s;
}

.auth-json-input:focus {
    border-color: #49cc90;
    outline: none;
}

.auth-json-input.error {
    border-color: #ff4d4f;
}

.auth-json-error {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
}

.encoded-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.encoded-preview label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 12px;
}

.encoded-result {
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

/* 表单布局样式 */
.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

/* 标签样式 */
.form-group label {
    min-width: 200px;
    padding-right: 15px;
    text-align: right;
    line-height: 32px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 输入框容器 */
.form-group .input-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
}

/* 提示信息移到上方 */
.field-tip {
    color: #666;
    font-size: 12px;
    margin-bottom: 4px;  /* 添加底部间距 */
    line-height: 1.5;
}

/* 输入框样式 */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    line-height: 1.5;
    font-size: 14px;
    margin-top: 0;  /* 移除顶部间距 */
}

/* 文本域特殊处理 */
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* 必填字段标记 */
.required-field label:after {
    content: '*';
    color: #ff4d4f;
    margin-left: 4px;
}

/* 错误提示 */
.auth-json-error {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
}

/* Base64 编码预览 */
.encoded-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    width: 100%;
}

/* 按钮组样式 */
.form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-left: 150px; /* 与标签宽度对齐 */
}

/* 数组字段样式 */
.form-group-array {
    margin-left: 150px; /* 与标签宽度对齐 */
    width: calc(100% - 150px);
}

.array-item {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    position: relative;
}

/* 响应区域样式 */
.request-response-info {
    margin-top: 30px;
    margin-left: 150px; /* 与标签宽度对齐 */
}

.request-response-info h4 {
    margin-bottom: 10px;
    color: #333;
}

.request-response-info pre {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

/* 响应状态样式 */
.success {
    color: #52c41a;
    padding: 10px;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 4px;
}

.error {
    color: #ff4d4f;
    padding: 10px;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 4px;
}

/* 重置按钮样式 */
.white_btn[type="reset"] {
    margin-left: 10px;
}

/* 标题区域样式 */
.header {
    background: #f0f2f5;  /* 更柔和的背景色 */
    padding: 16px 24px;
    border-bottom: 1px solid #e8e8e8;
}

.header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #1f2937;  /* 更深的文字颜色 */
    line-height: 1.4;
}

/* 如果有子标题，也一并调整 */
.header .subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;  /* 较浅的副标题颜色 */
}

/* 为了与侧边栏更好地融合 */
.page-container {
    background: #fff;
}

/* 调整内容区域的上边距，确保与新标题颜色协调 */
.content-container {
    padding: 20px;
    background: #fff;
}

/* 调整内容区域的上边距，确保与新标题颜色协调 */
.page-content {
    background: #fff;
    min-height: calc(100vh - 65px); /* 65px 是 page-header 的高度 */
}

/* 确保与侧边栏颜色协调 */
.main-container {
    background: #fff;
}

/* 文件容器样式调整 */
.files-container {
    margin-top: 4px;  /* 减小与label的距离 */
}

.form-group > label {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    margin-bottom: 4px;
    display: inline-block;
}

/* 文件信息标题样式保持醒目 */
.files-container-header h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* 确保内部表单组的label样式不受影响 */
.file-entry .form-group label {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 4px;
}

.files-container-body {
    padding: 12px;
}

/* 文件条目和网格布局调整 */
.file-entry {
    position: relative;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.file-entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 删除按钮样式优化 */
.remove-file-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #ff4d4f;
    border-radius: 50%;
    background-color: #fff;  /* 添加白色背景 */
    color: #ff4d4f;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.remove-file-btn::before {
    content: "×";
    display: block;
    line-height: 1;
    font-weight: bold;    /* 加粗符号 */
    transform: scale(1.2); /* 稍微放大符号 */
}

.remove-file-btn:hover {
    background-color: #ff4d4f;
    border-color: #ff4d4f;
    color: #fff;
}

/* 响应式布局下的删除按钮 */
@media (max-width: 768px) {
    .remove-file-btn {
        position: static;
        width: 100%;
        height: 28px;
        border-radius: 4px;
        margin-top: 8px;
        font-size: 13px;
    }

    .remove-file-btn::before {
        content: "删除";
        transform: none;
        font-weight: normal;
    }
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .file-entry {
        padding: 12px;
    }

    .file-entry-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .remove-file-btn {
        position: static;
        width: 100%;
        height: 28px;
        border-radius: 4px;
        margin-top: 8px;
        font-size: 13px;
    }
}

/* 修改文件容器底部样式 */
.files-container-footer {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 6px 6px;
    text-align: left;
}

/* 添加文件按钮样式 */
.add-file-btn {
    background-color: #49cc90;
    color: white;
    border: 1px solid #49cc90;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0;
}

.add-file-btn:hover {
    background-color: #40b881;
    border-color: #40b881;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .file-entry-grid {
        gap: 8px;
        margin-right: 0;
    }

    .file-entry {
        padding: 10px;
    }

    .file-entry .remove-file-btn {
        margin-top: 8px;
    }

    .files-container-footer {
        padding: 12px;
    }

    .add-file-btn {
        width: 100%;
    }
}

/* 文件组样式调整 */
.form-group-object {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

.form-group-object legend {
    font-size: 13px;
    color: #666;
    padding: 0 8px;
    margin-bottom: 0;
}

/* 调整内部容器样式 */
.files-container {
    margin: 0;
}

.files-container-header {
    padding: 8px 0;
    background: transparent;
    border-bottom: 1px solid #e0e0e0;
}

.files-container-body {
    padding: 12px 0;
}

.files-container-footer {
    padding: 8px 0 0;
    background: transparent;
    border-top: none;
}

/* 文件条目样式调整 */
.file-entry {
    border: 1px solid #e0e0e0;
    margin-bottom: 12px;
    border-radius: 4px;
}

.file-entry:last-child {
    margin-bottom: 0;
}

/* 认证信息容器样式 */
.auth-json-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;  /* 添加底部间距 */
}

.auth-json-section {
    margin-bottom: 16px;
}

.auth-json-section:last-child {
    margin-bottom: 0;
}

.auth-json-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* 认证信息输入框样式 */
.auth-json-container .form-group {
    margin-bottom: 12px;
}

.auth-json-container .form-group:last-child {
    margin-bottom: 0;
}

.auth-json-container .input-container input {
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.auth-json-container .input-container input:focus {
    border-color: #49cc90;
    outline: none;
    box-shadow: 0 0 0 2px rgba(73, 204, 144, 0.2);
}

/* 优化滚动条样式 */
#content::-webkit-scrollbar {
    width: 6px;
}

#content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#content::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.remove-taskid-btn {
    padding: 6px 15px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    transition: background-color 0.3s;
    min-width: 60px;
}

.remove-taskid-btn:hover {
    background-color: #ff7875;
}

.taskids-container-footer {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.add-taskid-btn {
    margin-top: 10px;
    padding: 6px 15px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.add-taskid-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/**/

.response-table-container {
    margin-top: 15px;
    overflow-x: auto;
}

.response-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.response-table th,
.response-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.response-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.response-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.response-table tr:hover {
    background-color: #f0f0f0;
}

.error-info {
    color: #ff4d4f;
}

/* 进度条样式 */
.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #e8e8e8;  /* 更深的进度条背景色 */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #d9d9d9;  /* 添加边框 */
}

.progress-bar {
    height: 100%;
    background-color: #1890ff;
    transition: width 0.3s ease;
    border-radius: 10px;
    position: relative;
}

.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 20px;
    color: #fff;
    mix-blend-mode: difference; /* 确保文字在任何背景色上都可见 */
    font-size: 12px;
    font-weight: bold;
    left: 0;
    top: 0;
}

/* 不同状态的进度条颜色 */
tr[data-task-id] .progress-bar {
    background-color: #1890ff; /* 进行中 */
}

tr[data-task-id] .progress-bar.complete {
    background-color: #52c41a; /* 完成 */
}

tr[data-task-id] .progress-bar.error {
    background-color: #ff4d4f; /* 错误 */
}

/* Thread status container */
.thread-status-container {
    background: #C5D5EC;  /* 更深的背景色 */
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 1px solid #e8e8e8;  /* 添加边框 */
}

.thread-progress-bar {
    background: #e8e8e8;  /* 更深的进度条背景色 */
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
    border: 1px solid #d9d9d9;  /* 添加边框 */
}

.thread-status-text {
    color: #333333;  /* 更深的文本颜色 */
    font-weight: 500;  /* 加粗文本 */
}

/* Progress bar in table */
.progress-bar-container {
    background-color: #e8e8e8;  /* 更深的进度条背景色 */
    border: 1px solid #d9d9d9;  /* 添加边框 */
}

/* Form elements */
input[type="text"],
input[type="number"],
select {
    border: 1px solid #d9d9d9;  /* 更深的输入框边框 */
    background-color: #ffffff;
}

/* Buttons */
.btn {
    border: 1px solid #d9d9d9;  /* 更深的按钮边框 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);  /* 添加阴影 */
}


.button-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.import-file-btn {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.import-file-btn:hover {
    background-color: #40a9ff;
}

.files-container {
    height: 100%;
    max-height: 600px; /* 设置最大高度 */
    overflow: scroll;
}


.table-header {
    margin-bottom: 10px;
}
.clear-table-btn {
    padding: 5px 15px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.clear-table-btn:disabled {
    background-color: #dc354580;
    cursor: not-allowed;
}
.clear-table-btn:not(:disabled):hover {
    background-color: #c82333;
}